package com.sakiko.controller;

import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpSession;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

// 原生 api对象操作: https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-controller/ann-methods/arguments.html
@Controller
@ResponseBody
@RequestMapping("api")
public class ApiController {

    @RequestMapping("show")
    public String show(HttpServletRequest request, HttpServletResponse response, HttpSession session) {
        return "show";
    }
}
